import Layout from '@/layout'

const taskRouter = [
  {
    path: '/task',
    component: Layout,
    redirect: '/task/todoTask',
    alwaysShow: true,
    name: 'task',
    meta: {
      title: 'task',
      icon: 'lock'
    },
    children: [
      {
        path: 'todoTask',
        component: () => import('@/views/workflow/taskManager/formMyTask'),
        name: 'todoTask',
        meta: {
          title: '待办任务 - '
        }
      },
      {
        path: 'applyTask',
        component: () => import('@/views/workflow/taskManager/applyTask'),
        name: 'applyTask',
        meta: {
          title: '发起流程 - '
        }
      },
      {
        path: 'doneTask',
        component: () => import('@/views/workflow/taskManager/formMyApprovedTask'),
        name: 'doneTask',
        meta: {
          title: '已办任务 - '
        }
      },
      {
        path: 'todoRead',
        component: () => import('@/views/workflow/taskManager/todoRead'),
        name: 'todoRead',
        meta: {
          title: '待阅任务 - '
        }
      },
      {
        path: 'doneRead',
        component: () => import('@/views/workflow/taskManager/doneRead'),
        name: 'doneRead',
        meta: {
          title: '已阅任务 - '
        }
      },
      {
        path: 'myApplyTask',
        component: () => import('@/views/workflow/taskManager/formMyHistoryTask'),
        name: 'myApplyTask',
        meta: {
          title: '我的流程 - '
        }
      },
      {
        path: 'myMessage',
        component: () => import('@/views/task/myMessage'),
        name: 'myMessage',
        meta: {
          title: '我的消息 - '
        }
      },
      {
        path: 'taskMessage',
        component: () => import('@/views/workflow/formMessage/index'),
        name: 'taskMessage',
        meta: {
          title: '事务消息 - '
        }
      }
    ]
  }
]
export default taskRouter
